/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mygraph;

/**
 *
 * @author sara
 */
public class Circle {
    int r;
    public Circle(int r){
        this.r=r;
    }

    /**
     *
     * @return
     */
    public double area()
    {
        return 3.1415926*r*r;
    }

    public double circum()
    {
        return 3.1415926*2*r;
    }
    @Override
    public String toString() {
        return "Circle{" + "r="+ r+ '}' + "\narea:"+this.area()+"\ncircum:"+this.circum() ;
    }
    
}

